<!---
	Title:		EPAR1.1 
	Author:		Bruce Frick
	Purpose:	Step2 Conformation 1 page
--->

<cfset BASE = CreateObject("component", "cfc.base") />
<cfset statusQueries = CreateObject("component", "#session.rootDir#.cfc.statusQueries") />

<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlHeader(
	"", <!---JS links--->
    "", <!---CSS links--->
    "Step 3:  HR - Orientation 1", <!---Page Title--->
    "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->


<cfif Session.bolAuth EQ True and (Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>

	<!---Query objects--->
    <cfset QUERIES = {
	   GetStep3Waiting = statusQueries.funcGetSCFStepWaiting(3)
    } />
    <!---Query objects--->
    
    <h1 class="title">Step 3:  HR - Orientation</h1>
    <div class="entry">
    	
        Welcome, #Session.arrEmpInfo.FirstName# #Session.arrEmpInfo.LastName#.  
        In this step, we'll capture additional information obtained by HR from the employee during Orientation.  
        <BR /> <BR />
    
        <cfif QUERIES.GetStep3Waiting.recordcount GT 0>
            <table>
                <tr>
                    <td valign="top">
                        Please select an employee:       
                    </td>
                    <td>
                        <cfform name="frmStep3" method="get">
                        <table>
                            <tr>
                                <td>
                                    <cfselect name='Emp' tabindex="10" 
                                    onChange="document.location.href='api.cfm?api=step3_orientation&StepID=' + $('##Emp option:selected').val()">
                                        <option value = 0>-- Select an Employee --</option>
                                        <cfloop query="QUERIES.GetStep3Waiting">
                                            <option value=#ID#>#Name#</option>
                                        </cfloop>
                                    </cfselect>
                                </td>
                            </tr>
                        </table>
                        </cfform>  
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        Please select a "No Show" employee:       
                    </td>
                    <td>
                        <cfform name="frmStep3NoShow" method="POST" action="api.cfm?api=step3_no_show">

                        <table>
                            <tr>
                                <td>
                                    <cfselect name='NoShow' tabindex="20"
                                    onChange="$('##frmStep3NoShow').attr( {action: 'api.cfm?api=step3_no_show&StepID=' + $('##NoShow option:selected').val()} ).submit(); ">
                                        <option value = 0>-- Select an Employee --</option>
                                        <cfloop query="QUERIES.GetStep3Waiting">
                                            <option value=#ID#>#Name#</option>
                                        </cfloop>
                                    </cfselect>
                                </td>
                            </tr>
                        </table>
                        </cfform>  
                    </td>
                </tr>

            </table>
        <cfelse>
            <span class="error">At the present time, there are not any employees staged for orientation documents.</span>
        </cfif>
    
    </div>

<cfelse>
    <cfinclude template="denied.cfm">
</cfif>


<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>